package com.jame.context.definition;

import com.jame.typeenum.ScopeType;


/**
 * @author : Jame
 * @date : 2021-06-13 16:26
 * 通用bean定义
 **/
public class UniversalBeanDefinition {
    private String name;

    private Class<?> interfaceClass;

    private Object object;

    //设置默认为单例
    private ScopeType scopeType = ScopeType.Singleton;

    private boolean isLazyLoad=false;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Class<?> getInterfaceClass() {
        return interfaceClass;
    }

    public void setInterfaceClass(Class<?> interfaceClass) {
        this.interfaceClass = interfaceClass;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public ScopeType getScopeType() {
        return scopeType;
    }

    public void setScopeType(ScopeType scopeType) {
        this.scopeType = scopeType;
    }

    public boolean isLazyLoad() {
        return isLazyLoad;
    }

    public void setLazyLoad(boolean lazyLoad) {
        isLazyLoad = lazyLoad;
    }
}
